package yanc.app

class Phone {
    /*
    手机厂商
     */
    String phoneComm
    Date createDate
    String imgUrl
    static hasMany = [typess: Types]

    /**
     * 映射。
     */
    static mapping = {
        table "sys_phone"
        version false
        createDate(column: "create_date", sqlType: "datetime")
        phoneComm(column: "phone_comm", sqlType: "varchar(40)")
        imgUrl(column: "icon", sqlType: "varchar(200)")
    }

    static constraints = {
        createDate(nullable: false, unique: false)
        phoneComm(nullable: false, unique: false)
        imgUrl(nullable: false, unique: false)
    }
}
